package com.ctshk.rpc.airexpress.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 机场快线策略类 DTO类
 * </p>
 *
 * @author 胡广
 * @since 2021-02-07
 */
@Data
@ApiModel(value = "AirportExpressIncreaseStrategyReq对象", description = "机场快线策略Req")
public class AirportExpressIncreaseStrategyReq implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    private Long id;

    @ApiModelProperty(value = "机场快线ID")
    private Long airportExpressId;

    @NotBlank(message = "加幅策略名称不能为空")
    @ApiModelProperty(value = "加幅策略名称")
    private String increaseStrategyName;

    @ApiModelProperty(value = "自营权限类型")
    private Integer selfSalePermissionType;

    @ApiModelProperty(value = "自营权限类型ID")
    private Long selfSalePermissionId;

    @ApiModelProperty(value = "代理商权限类型")
    private Integer agentSalePermissionType;

    @ApiModelProperty(value = "代理商权限类型ID")
    private Long agentSalePermissionId;

    @Valid
    @ApiModelProperty(value = "加幅规则自营")
    private AirportExpressIncreaseStrategyRuleReq airportExpressIncreaseStrategySelfRule;

    @Valid
    @ApiModelProperty(value = "加幅规则代理")
    private AirportExpressIncreaseStrategyRuleReq airportExpressIncreaseStrategyAgentRule;

    @Valid
    @NotEmpty(message = "加幅时间段不能为空")
    @ApiModelProperty(value = "加幅时间段")
    private List<AirportExpressIncreaseStrategyDateReq> airportExpressIncreaseStrategyDateList;

    @Valid
    @ApiModelProperty(value = "线下渠道-代理服务列表")
    private List<AirportExpressChannelOfflineAgentCustomReq> airportExpressChannelOfflineAgentCustomList;

    @Valid
    @ApiModelProperty(value = "线下渠道-自营服务列表")
    private List<AirportExpressChannelOfflineSelfCustomReq> airportExpressChannelOfflineSelfCustomList;

    @Valid
    @ApiModelProperty(value = "线上渠道-自营服务列表")
    private List<AirportExpressChannelOnlineSelfPlatformReq> airportExpressChannelOnlineSelfPlatformList;

    @Valid
    @ApiModelProperty(value = "线上渠道-第三方服务列表")
    private List<AirportExpressChannelOnlineThirdPlatformReq> airportExpressChannelOnlineThirdPlatformList;
}
